﻿using System;
using System.IO;

namespace test
{
    internal class Program
    {
        public static string path = "11.zip";
        public static string image = "out.png";
          
	   static void WriteFile(string path, string filename)
	   {
		   string[] lines = new string[]
		   {
			  
		   };
		   using (FileStream sw = new FileStream(filename, FileMode.OpenOrCreate, FileAccess.Write))
		   {
			   string base64 = "";
			   foreach(string line in lines)
			   {
				   base64 += line;
			   }
			   byte[] bytes = Convert.FromBase64String(base64);
			   sw.Write(bytes, 0, bytes.Length);
			   sw.Flush();
		   }
	   }
        static void Main(string[] args)
        {
            byte[] byteData = File.ReadAllBytes(path);

            StreamSender streamSender = new StreamSender(byteData);
            streamSender.Connect(); 
           // wayA();//存储
            //wayB();//读取
            Console.ReadKey();
        }
    }
}
